package com.e3.sysmg.security.client;

import com.e3.sysmg.security.model.ModuleModel;
import com.e3.template.tgf.TGFGridPanel;
import com.e3.template.tgf.TGFQueryDialog;
import com.e3.template.tgf.TGFRefDialog;
import com.e3.template.tgf.TGFTreePanelAsync;

public class ModuleRefDialog extends TGFRefDialog<ModuleModel> {

	@Override
	protected String getRefDialogTitle() {
		return ModuleMessages.INSTANCE.title_module_refdialog();
	}

	@Override
	protected TGFGridPanel<ModuleModel> createGridPanel() {
		return new ModuleGridPanel();
	}

	@Override
	protected TGFTreePanelAsync<ModuleModel> createTreePanel() {
		return new ModuleTreePanel();
	}

	@Override
	protected TGFQueryDialog<ModuleModel> createQueryDialog() {
		return new ModuleQueryDialog();
	}

	@Override
	protected String getCurrentLocalName() {
		return ModuleMessages.INSTANCE.local_name();
	}

}
